//
//  NSDictionary+Common.h
//  TimeBoat
//
//  Created by Mac on 2020/3/11.
//  Copyright © 2020yang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (Common)

///字典转JSON字符串
-(NSString *)hhe_convertToJsonData;

/**
 安全获取字典里面的值
 @param key 健
 @return 值
 */
- (id)safeObjectForKey:(NSString*)key;

@end

#pragma mark - NSMutableDictionary
@interface NSMutableDictionary (CommonMu)

#pragma mark - safe
/**
 安全的对字典赋值
 @param anObject 值
 @param aKey 健
 */
- (void)safeSetObject:(id)anObject forKey:(id)aKey;

@end
NS_ASSUME_NONNULL_END
